package com.designpatterns.chainofresponsibilitypattern;

import java.lang.reflect.Method;

public class MyInterceptor3 implements Interceptor {
    public boolean before(Object proxy, Object target, Method method, Object[] args) {
        System.out.println("拦截器3的前置方法");
        return true;
    }

    public void repalce(Object proxy, Object target, Method method, Object[] args) {
        System.out.println("拦截器3的取代真实对象的方法");
    }

    public void after(Object proxy, Object target, Method method, Object[] args) {
        System.out.println("拦截器3的后置方法");
    }
}
